package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.pojo.Repairs;
import com.bwie.vo.EchartsVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 秋晚
 * @Date:  2025/7/7 20:27
 * @Description: 
 **/

public interface RepairsMapper extends BaseMapper<Repairs> {
    List<EchartsVo> getXyData();

    ArrayList<String> getYearList();

    ArrayList<Integer> getCount(int status);

    ArrayList<String> getAreaXList();

    ArrayList<String> getAreaYList(int status);


    Page<Repairs> repairsPage(Page<Repairs> repairsPage,
                              @Param("repairsCode") String repairsCode,
                              @Param("repairsType") Integer repairsType,
                              @Param("repairsStatus") Integer repairsStatus,
                              @Param("repairsUser") String repairsUser,
                              @Param("repairsArea") Integer repairsArea);

    Integer selectPersonCount();

    Double selectPriceSumCount();

    Integer selectRoomCount();

    List<String> getXData();


    List<Integer> getYData(@Param("status") int status);
}